﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Dabke_Statistics.aspx.vb" Inherits="Dabke.Dabke_Statistics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <p>
        Top Five rated Dabkes :<br />
    </p>
<br />
    <asp:Chart ID="Chart1" runat="server" DataSourceID="SqlDataSource1" 
    Width="600px">
        <Series>
            <asp:Series Name="Series1" XValueMember="Dabka_Name" YValueMembers="AvgOfRate">
            </asp:Series>
        </Series>
        <ChartAreas>
            <asp:ChartArea Name="ChartArea1">
            </asp:ChartArea>
        </ChartAreas>
    </asp:Chart>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT top 5 [Dabka_Name], [AvgOfRate] FROM [Dabka_withAvgRating]">
    </asp:SqlDataSource>
    <br />
    <p>
        Top Five searched Phrases :</p>
        <p>
        <asp:Chart ID="Chart2" runat="server" DataSourceID="SqlDataSource2" Width="600px">
            <Series>
                <asp:Series ChartType="Doughnut" Name="Series1" XValueMember="S_Phrase" 
                    YValueMembers="CountPhrases">
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT top 5 [CountPhrases], [S_Phrase] FROM [Dabka_Searched_Phrases_Qry]">
        </asp:SqlDataSource>
        </p>
    <p>    Top Five most Viewed Topics :</p>
    <p>
    <asp:Chart ID="Chart3" runat="server" DataSourceID="SqlDataSource3" Width="600px">
        <Series>
            <asp:Series Name="Series1" ChartType="Pie" XValueMember="Dabka_Name" 
                YValueMembers="CountViewed">
            </asp:Series>
        </Series>
        <ChartAreas>
            <asp:ChartArea Name="ChartArea1">
            </asp:ChartArea>
        </ChartAreas>
    </asp:Chart>
    
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            SelectCommand="SELECT top 5 [CountViewed], [Dabka_Name] FROM [CountViewed_Query]">
        </asp:SqlDataSource> 
    </p>
        <p>
       
        Top Five most Liked Topics : </p>
        <p>
        
            <asp:Chart ID="Chart4" runat="server" DataSourceID="SqlDataSource4" 
                Width="600px">
                <Series>
                    <asp:Series Name="Series1" ChartType="Radar" XValueMember="Dabka_Name" 
                        YValueMembers="CountLikes" YValuesPerPoint="4">
                    </asp:Series>
                </Series>
                <ChartAreas>
                    <asp:ChartArea Name="ChartArea1">
                    </asp:ChartArea>
                </ChartAreas>
            </asp:Chart>
            <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                SelectCommand="SELECT top 5 [CountLikes], [Dabka_Name] FROM [CountTopicLikes_Query]">
            </asp:SqlDataSource>
        </p>



&nbsp;
</asp:Content>
